#ifndef CSDATABASELOGIN_H
#define CSDATABASELOGIN_H

#include <QDialog>
#include "settingsdialog.h"

namespace Ui {
class CSDatabaseLogin;
}

class CSDatabaseLogin : public QDialog
{
    Q_OBJECT
    
public:
    explicit CSDatabaseLogin(QWidget *parent = 0);
    ~CSDatabaseLogin();
    
signals:
    void LoggedIn();

    void NotLoggedIn();

    void Canceled();

    void SingleFile();

private slots:
    void on_buttonBox_accepted();

    void on_buttonBox_rejected();

    void on_btnDatabaseSettings_clicked();

    void on_chkDontShowThisAgain_toggled(bool checked);

    void on_btnSingleFile_clicked();

    void on_DatabaseSettingsUpdated();

    void on_DatabaseSettingsAborted();

private:
    Ui::CSDatabaseLogin *ui;

    SettingsDialog *sd;

    CSSettingsInformation *si;

    DataBaseFacade *df;

    void DisconnectSettings();
};

#endif // CSDATABASELOGIN_H
